package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel
@Data
public class FileManageDTO {

    private Integer id;

    @NotBlank(message = "资料标题不可以为空")
    @Length(min = 1, max = 100, message = "资料标题长度需要在1-100个字之间")
    @ApiModelProperty(value = "资料库标题")
    private String fileTitle;

    @ApiModelProperty(value = "资料库描述")
    private String fileDesc;

    @Length(min = 0, max = 65536, message = "图片url")
    @ApiModelProperty(value = "图片url")
    private String imageUrl;

    @Length(min = 0, max = 65536, message = "文件url")
    @ApiModelProperty(value = "文件url")
    private String fileUrl;

    @Length(min = 0, max = 65536, message = "文件名字")
    @ApiModelProperty(value = "文件名字")
    private String fileName;

    @Range(min = 0, max = 1, message = "状态:1-启用,0-禁用")
    @ApiModelProperty(value = "状态：1-启用,0-禁用 ")
    private Integer status;
}
